package com.ossean.dao;

import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import com.ossean.model.PKControlProjects;

public interface PKControlProjectsDao {
	
	//向表中插入一条数据
	@Insert("insert into ${table} (`urlMD5`) values (#{urlMD5})")
	public void insertOneItem(@Param("table") String table, @Param("urlMD5") String urlMD5);
	
	//读取项目urlMD5码对应的数据信息
	@Select("select * from ${table} where urlMD5=#{urlMD5}")
	public PKControlProjects selectItemByUrlMD5(@Param("table") String table, @Param("urlMD5") String urlMD5);
}
